package cn.dt70.dao.aqbAddress;

import cn.dt70.pojo.AqbAddress;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AqbAddressMapper {
    List<AqbAddress> getAddressByUserid(@Param("userId") Integer userId) throws Exception;

    AqbAddress getAddressByAddid(@Param("addId") Integer addId) throws Exception;

    Integer addAddress(@Param("userId") Integer userId,
                       @Param("addressName") String addressName,
                       @Param("provicace") String provicace,
                       @Param("city") String city,
                       @Param("district") String district,
                       @Param("address") String address,
                       @Param("phone") String phone
    ) throws Exception;
}
